package com.cn.web.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.org.OrgDO;
import com.cn.role.RoleDO;
import com.cn.user.UserDO;
import com.cn.web.user.vo.UserEditDTO;
import com.cn.web.user.vo.UserSearch;
import com.cn.web.user.vo.UserVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description: IUserMapper <br>
 * date: 21.12.14 13:41 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
@Mapper
public interface IUserMapper extends BaseMapper<UserDO> {

    UserDO findByUserName(Object userLogin);

    UserDO findByUserPhone(Object userLogin);

    UserDO findByPhoneDeviceIdTokenId(Object info);

    void update(UserDO userEntity);

    List<UserVO> list(UserSearch search);

    List<RoleDO> listRole(String userId);

    List<OrgDO> listOrg(String userId);

    List<UserEditDTO> listUsersOpenApi(Object search);

    void updatePassWord(Object obj);

    Long getMaxUserSlot(Object search);

    Long checkUserExist(Object pd);

    List<UserVO> listMember(Object search);
}
